package com.pw.study.gmallpublisher.service.impl;

import com.pw.study.gmallpublisher.enties.DUAData;
import com.pw.study.gmallpublisher.mapper.DUAMapper;
import com.pw.study.gmallpublisher.service.DUAService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Log4j
public class DUAServiceImpl implements DUAService {
    @Autowired
    private DUAMapper duaMapper;

    @Override
    public List<DUAData> getDUAPerHourDay(String date) {
        return duaMapper.getDUAPerHourByDate(date);
    }

    @Override
    public Integer getDAUByDate(String date) {
        return duaMapper.getDUAByDate(date);
    }

    @Override
    public Integer getNewUsersCountByDate(String date) {
        return duaMapper.getNewUserCountByDate(date);
    }
}
